#!/bin/bash

export CXX=g++
export CC=gcc

LibName=libamqpcpp

rm -rf Lib Include
cd Source/amqpcpp
make

if [ ! -f ./$LibName.a ]; then
	echo "Failed to compile $LibName.a"
	return 1
fi

mkdir ../../Lib
mkdir ../../Include

cp $LibName.* ../../Lib/
cp include/*.h ../../Include/

